<%-- 
    Document   : XemDanhSachThanhVien
    Created on : May 14, 2011, 2:17:43 PM
    Author     : ToanNhan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="template" uri="/WEB-INF/tlds/CustomTagLibrary" %>
<%
            Boolean isLogin = (Boolean) session.getAttribute("isLogin");
            isLogin = true;
            if (isLogin == null || isLogin == false) {
                session.setAttribute("lastPage", "/WebsiteBanHang/Admin/XemDanhSachThanhVien.jsp");
                response.sendRedirect("/WebsiteBanHang/DangNhap.jsp");
            }
            String nhomThanhVien = (String) session.getAttribute("nhomThanhVien");
            nhomThanhVien = "NTV2";
            if (nhomThanhVien == null || nhomThanhVien.length() == 0){
                response.sendRedirect("/WebsiteBanHang");
                }
            nhomThanhVien = nhomThanhVien.toLowerCase();
            if (nhomThanhVien.compareTo("ntv1") == 0){
                response.sendRedirect("/WebsiteBanHang");
                }

%>

<%
            if (request.getAttribute("danhSachThanhVien") == null) {
                request.getRequestDispatcher("/XemDanhSachThanhVienControler?command=LayDanhSachThanhVien").forward(request, response);
            }
%>
<template:insert template="subPages/Template.jsp">
    <template:put name="Header" content="../../Template/Header.jsp" direct="false" />
    <template:put name="Left" content="Left.jsp" direct="false" />
    <template:put name="Middle" content="XemDanhSachThanhVienSubpage.jsp" direct="false"/>
    <template:put name="Footer" content="../../Template/Footer.jsp" direct="false" />
</template:insert>
